﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;

namespace CaltechSoft.Service.Repositories
{
    public interface IRepository<T>
    {
        IQueryable<T> DbSet();
        Task<T> GetBy(int id);
        Task<IList<T>> GetAll();
        Task<int> Update(T obj);
        Task<int> Add(T obj);
        Task<int> Remove(int id);
    }
}